package com.itheima.exerciseTest.method20_29.method29;

public class Warehouse {
    private volatile int gift;

    public Warehouse() {
        this(100);
    }

    public Warehouse(int gift) {
        this.gift = gift;
    }

    public int getGift() {
        return gift;
    }

    public void setGift(int gift) {
        this.gift = gift;
    }
}
